package org.mozhu.mboot.core.config;

import org.springframework.core.env.MapPropertySource;

import java.util.Map;

public class MemoryPropertySource extends MapPropertySource {
    public MemoryPropertySource(String name, Map<String, Object> source) {
        super(name, source);
    }

    public void setProperty(String name, String value) {
        Map<String, Object> source = this.getSource();
        source.put(name, value);
    }
}
